package com.ms.auction.common.module.deal;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 加价
 * </p>
 *
 * @author MaHC
 * @since 2019-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MarkupRecordHis对象", description="加价")
public class MarkupRecordHis implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单编号")
    @TableField("order_number")
    private String orderNumber;

    @ApiModelProperty(value = "卖场id")
    @TableField("field_id")
    private Integer fieldId;

    @ApiModelProperty(value = "商品Id")
    @TableField("goods_id")
    private Integer goodsId;

    @ApiModelProperty(value = "当前出价")
    @TableField("current_bid")
    private BigDecimal currentBid;

    @ApiModelProperty(value = "参拍总次数")
    @TableField("total_number")
    private Integer totalNumber;

    @ApiModelProperty(value = "用户参拍次数")
    @TableField("shooting_times")
    private Integer shootingTimes;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "定金金额/保证金")
    @TableField("bond")
    private BigDecimal bond;

    @ApiModelProperty(value = "佣金")
    @TableField("commission")
    private BigDecimal commission;

    @ApiModelProperty(value = "佣金状态 0:未支付 1:已支付 2:已退回")
    @TableField("cms_status")
    private Integer cmsStatus;

    @ApiModelProperty(value = "优惠金额")
    @TableField("coupons")
    private BigDecimal coupons;

    @ApiModelProperty(value = "优惠类型")
    @TableField("coupons_type")
    private Integer couponsType;

    @ApiModelProperty(value = "实际支付金额")
    @TableField("pay_amount")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "支付方式")
    @TableField("pay_type")
    private String payType;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    @TableLogic
    private Integer status;

    @ApiModelProperty(value = "备注字段")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "乐观锁标志")
    @TableField("version")
    @Version
    private Integer version;


}
